package com.qf.day11;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateDemo {
    public static void main(String[] args) {
//        Date date = new Date();
//        System.out.println(date);
        Date date1 = new Date();
        String date = "2001-01-11 00-00-00";
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH-mm-ss");
        String time = String.format(date);
        System.out.println(time);
    }
}
